package org.smile.day03;

public class Cleaner {
    private String name;
    private Long id;

    private double amount = 0;
    private double price = 10.0;
    private double total = 0;

    public double getAmount() {
        return amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public double getTotal() {
        return total;
    }

    public void setTotal(double total) {
        this.total = total;
    }

    public void clean(Office office){
        System.out.println(this.name+"正在清理"+office.getType()+office.getName());

        amount++;
        total += 1 * price;
    }

    Cleaner(){

    }

    public Cleaner(String name, Long id) {
        this.name = name;
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
}
